package itheima_1;

import javax.security.sasl.SaslException;
import java.io.IOException;
import java.net.*;

public class ClienDemo1 {
    public static void main(String[] args) throws IOException {
        DatagramSocket ds=new DatagramSocket();
        while (true) {
            String s="我是你爸爸";

            byte[]bytes=s.getBytes();
            InetAddress address = InetAddress.getByName("224.0.1.0");
            int port=10008;
            DatagramPacket dp=new DatagramPacket(bytes, bytes.length,address,port);

            ds.send(dp);
        }
        //ds.close();
    }
}